home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dirut
/
free19.zip
/
FREE.DOC
< prev
next >
Wrap
Text File
|
1991-05-03
|
6KB
|
144 lines
Program: Free.Exe version 1.9
Syntax: Free [/d /f /i /h /n /r /?]
Brief: Displays available and total drive space on all drives.
Switches:
/d - Display the drive assignments as full text rather than by letter.
/f - Include Floppies A: and/or B:.
/i - Display sector, cluster and usage information.
/h/? - Displays above information.
/n - Do not display ? code information.
/r - Do not display drives that don't respond.
/h/? switches will only display Help information. /f, /n and /r can be
used with any other switch. /d and /i are mutually exclusive. /d overrides
/i so that if you use /d and /i, you will have full text.
Explanation: Free checks each drive from A to Z and displays one of four
possible lines:
1) d: available total t d:\directory
[d:] - is the drive being checked.
[available] - Free Space.
[total] - Total Space.
[t] - Drive Type.
' ' for a local, joined or assigned drive.
'b' for a Bernoulli drive.
'e' for an external device (like a 3.5" external
floppy).
'n' for a networked drive (only tested with IBM PC
Lan and 3Com 3+Share).
's' for a substituted drive.
'v' for a virtual disk (VDisk.Sys).
'?' for any other drive. If you encounter a '?'
drive, please pass any information about it to
me. I will send an updated copy to you after
verification. You can turn off this information
by using the /n switch.
[directory] - Current Directory.
2) d: available total t uu% cccc bytes sss bytes
[d:] - is the drive being checked.
[available] - Free Space.
[total] - Total Space.
[t] - Drive Type. (see above)
[uu] - Percentage in use.
[cccc] - Number of bytes per cluster.
[sss] - Number of bytes per sector.
3) ->d<- [Network ]Drive not responding.
[->d<-] - is the drive being checked.
[Network ] - if the drive is a network link and is now unavailable,
you will have this added to the "Drive not responding"
message.
4) d: available total long drive type
[d:] - is the drive being checked.
[available] - Free Space.
[total] - Total Space.
[long drive type] - Full text description of device.
Joined and Assigned drives display the same characteristics as the drive
they came from. If you Assign to a Network drive, the Assigned drive will
be displayed as a Network drive.
I originally decided to make sure it didn't run on any other version of Dos
than 3.x but since there have been so many requests for an upgrade, I
decided to modify this check. Now it will not work on any version of Dos
older than 3.0. If you run it on any Dos other than 3.x, you may produce
unpredictable results.
Example 1:
FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
Drive Available Total Current Directory
->A<- Drive not responding.
->B<- Drive not responding.
C: 464896 31768576 C:\DOS\BATCH
D: 1365504 1457664 e D:\
E: 612352 1042944 v E:\
F: 3805184 44503040 b F:\WINDOWS
->G<- Drive not responding.
L: 6813696 33462272 n L:\
M: 6813696 33462272 n M:\
N: 6813696 33462272 n N:\
Example 2 (with /i switch):
FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
Drive Available Total Usage Cluster Size Sector Size
C: 5844992 33454080 83% 2048 bytes 512 bytes
D: 993280 33454080 98% 2048 bytes 512 bytes
E: 573440 6250496 91% 4096 bytes 512 bytes
L: 993280 33454080 s 98% 2048 bytes 512 bytes
M: 993280 33454080 s 98% 2048 bytes 512 bytes
U: 5844992 33454080 s 83% 2048 bytes 512 bytes
Example 3 (with /f and /d switch):
FREE v1.9 - Copyright 1990,1991 by Carl Schelin - All Rights Reserved
Drive Available Total Drive Assignment
->A<- Drive not responding.
C: 5844992 33454080 Local Drive
D: 993280 33454080 Local Drive
E: 573440 6250496 Local Drive
L: 993280 33454080 SUBST'd Drive
M: 993280 33454080 SUBST'd Drive
U: 5844992 33454080 SUBST'd Drive
Note: Since I often move things from one drive to another, I always check to
see how much space is left before hand. I decided to create this utility
to fix that and to tell me the current directory. I like to know what the
current directory is so I can copy to E: rather than E:\Advent\NH if E: is
already pointing to the correct directory.
After I posted it to comp.binaries.ibm.pc, I received a number of inquiries
about some modifications and some hints about how to check for subst'd,
network'd and so on drive types.
Plans: Possibly adding a switch later to allow you to show the actual path
rather than the substituted or network path.
Author: Carl Schelin - (703) 659-9865 - tcs@mailer.jhuapl.edu
Language: Borland C++ v2.00 (patched)